package com.kevin.ejb3;

import javax.ejb.Remote;
import javax.ejb.Stateless;

/**
 * Created by loli on 2015/3/15.
 */
@Stateless
@Remote({HelloWorld.class, HiWorld.class})
public class HelloWorldBean implements HelloWorld,HiWorld{
    public String sayHello(String name){
        System.out.println(name);
        return name+"says: hello this is my first ejb";
    }

    public String sayHi(String name){
        System.out.println(name);
        return name+"says: hi this is my first ejb";
    }
}
